﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SGRapidForm.Common;
using System.Runtime.Serialization;

namespace SGRapidForm.Permission.Entity
{
    [DataContract]
    public class ButtonEntity : EntityBase
    {
        public ButtonEntity()
        {
        }
        #region Model
        private string _keyid = string.Empty;
        private string _modulekeyid = string.Empty;
        private string _pagekeyid = string.Empty;
        private string _buttoncode = string.Empty;
        private string _buttonname = string.Empty;
        private string _buttonnameen = string.Empty;
        private string _imageurl = string.Empty;
        private string _onclick = string.Empty;
        private string _serversidemethod = string.Empty;
        private int? _order = 0;
        private string _buttontype = string.Empty;
        private string _remark = string.Empty;
        private string _createname = string.Empty;
        private DateTime? _createdate = new DateTime(1900, 1, 1, 0, 0, 0);
        private string _modifyname = string.Empty;
        private DateTime? _modifydate = new DateTime(1900, 1, 1, 0, 0, 0);

        [DataMember]
        public string Keyid
        {
            set { _keyid = value; }
            get { return _keyid; }
        }
        [DataMember]
        public string ServerSideMethod
        {
            set { _serversidemethod = value; }
            get { return _serversidemethod; }
        }
        [DataMember]
        public string ModuleKeyid
        {
            set { _modulekeyid = value; }
            get { return _modulekeyid; }
        }
        [DataMember]
        public string PageKeyid
        {
            set { _pagekeyid = value; }
            get { return _pagekeyid; }
        }
        [DataMember]
        public string ButtonCode
        {
            set { _buttoncode = value; }
            get { return _buttoncode; }
        }
        [DataMember]
        public string ButtonName
        {
            set { _buttonname = value; }
            get { return _buttonname; }
        }
        [DataMember]
        public string ButtonNameEn
        {
            set { _buttonnameen = value; }
            get { return _buttonnameen; }
        }
        [DataMember]
        public string ImageUrl
        {
            set { _imageurl = value; }
            get { return _imageurl; }
        }
        [DataMember]
        public string OnClick
        {
            set { _onclick = value; }
            get { return _onclick; }
        }
        [DataMember]
        public int? Order
        {
            set { _order = value; }
            get { return _order; }
        }
        [DataMember]
        public string ButtonType
        {
            set { _buttontype = value; }
            get { return _buttontype; }
        }
        [DataMember]
        public string Remark
        {
            set { _remark = value; }
            get { return _remark; }
        }
        [DataMember]
        public string CreateName
        {
            set { _createname = value; }
            get { return _createname; }
        }
        [DataMember]
        public DateTime? CreateDate
        {
            set { _createdate = value; }
            get { return _createdate; }
        }
        [DataMember]
        public string ModifyName
        {
            set { _modifyname = value; }
            get { return _modifyname; }
        }
        [DataMember]
        public DateTime? ModifyDate
        {
            set { _modifydate = value; }
            get { return _modifydate; }
        }
        #endregion Model

    }
}
